import {BUTTONSWITCH} from '../constant'
export default function CollApsedReducer(prevState = {isCollapsed:false}, action) {
  let { type,data } = action
  switch (type) {
    case BUTTONSWITCH:
      let newState = { ...prevState }
      newState.isCollapsed = !newState.isCollapsed
      return newState
    default:
      return prevState
  }
}